﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace NP.BPMReportPlatform.HR.Dto
{
    /// <summary>
    /// 手机费额度配置维护 批量导入
    /// IsLabelingError：是否标注数据错误
    /// </summary>
    [ExcelImporter(IsLabelingError = true)]
    public class ImportPhoneFeeLimitConfigInput
    {
        /// <summary>
        /// 类型
        /// </summary>
        [ImporterHeader(Name = "类型")]
        [Required(ErrorMessage = "类型不能为空")]
        public string Type { get; set; }

        /// <summary>
        /// 职级
        /// </summary>
        [ImporterHeader(Name = "职级")]
        [Required(ErrorMessage = "职级不能为空")]
        public string Rank { get; set; }

        /// <summary>
        /// 职级名称
        /// </summary>
        [ImporterHeader(Name = "职位名称")]
        public string RankName { get; set; }

        /// <summary>
        /// 额度
        /// </summary>
        [ImporterHeader(Name = "额度")]
        [Required(ErrorMessage = "额度不能为空")]
        public string Limit { get; set; }

        /// <summary>
        /// 有效开始日期
        /// </summary>
        [ImporterHeader(Name = "有效期（开始日期）")]
        [Required(ErrorMessage = "有效期（开始日期）不能为空")]
        public string ExpiryDateStart { get; set; }

        /// <summary>
        /// 有效结束日期
        /// </summary>
        [ImporterHeader(Name = "有效期（截止日期）")]
        [Required(ErrorMessage = "有效期（截止日期）不能为空")]
        public string ExpiryDateEnd { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ImporterHeader(Name = "备注")]
        public string Remark { get; set; }
    }
}
